<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form"%>
<div class="summerydiv">
	<sf:form modelAttribute="registerObj">
		<h3>Main Contact</h3>
		<input type="submit" name="_eventId_maincontact" value="Edit">
	Full Name: <c:out value="${registerObj.firstName}" />
		<c:out value="${registerObj.middleName}" />
		<c:out value="${registerObj.lastName}" />
		<br />
		<br />
	Designation: <c:out value="${registerObj.designation}" />
		<br />
		<br />
	Telephone: <c:out value="${registerObj.telephone}" />
		<br />
		<br />
	Email: <c:out value="${registerObj.email}" />
		<br />
		<br />
	Company: <c:out value="${registerObj.companyName}" />
		<br />
		<br />
	Company Address: <c:out value="${registerObj.companyAddress}" />
		<br />
		<br />

		<h3>Participant(s)</h3>
		<c:forEach items="${registerObj.participantList}" var="p"
			varStatus="participantStatus">
			<c:out value="${1+participantStatus.index}" />
			<br />
			<br />
		Name: <c:out value="${p.salutation}${p.salutationOther}" />
			<c:out value="${p.firstName}" />
			<c:out value="${p.middleName}" />
			<c:out value="${p.lastName}" />
			<br />
			<br />
		
		Designation: <c:out value="${p.designation}" />
			<br />
			<br />
		Badge Name: <c:out value="${p.badgeName}" />
			<br />
			<br />
		Email: <c:out value="${p.email}" />
			<br />
			<br />
		Phone: <c:out value="${p.telephone}" />
			<br />
			<br />
		Registered for:
		<c:if test="${p.main}">
				<br />
				<br />Main Conference</c:if>
			<c:if test="${p.breakout1 gt 0}">
				<br />
				<br />Breakout Session 1${p.breakout1 eq 1?'A':'B'}</c:if>
			<c:if test="${p.breakout2 gt 0}">
				<br />
				<br />Breakout Session 2${p.breakout2 eq 1?'A':'B'}</c:if>
			<c:if test="${p.post1}">
				<br />
				<br />Post Conference Workshop 1</c:if>
			<c:if test="${p.post2}">
				<br />
				<br />Post Conference Workshop 2</c:if>
			<br />
			<br />
		Price: <fmt:formatNumber value="${p.amount}" type="currency"
				currencySymbol="S$" />
			<br />
			<br />

		</c:forEach>
		<c:if test="${not empty registerObj.participantList}">
		Total <fmt:formatNumber value="${registerObj.amount}" type="currency"
				currencySymbol="S$" />
		</c:if>
		<br />
		<br />

		<div class="butdiv">
			<input type="submit" name="_eventId_addparticipant"
				value="Add New Participant">
			<c:if test="${not empty registerObj.participantList}">
				<input type="submit" name="_eventId_deletelastparticipant"
					value="Delete Last Participant">
				<input type="submit" name="_eventId_deleteallparticipant"
					value="Delete All Participant(s)">
			</c:if>
			<br />
			<c:if
				test="${not empty registerObj.participantList and not empty registerObj.firstName}">
				<input type="submit" name="_eventId_next" value="Next">
			</c:if>
			<br /> <input type="submit" name="_eventId_back" value="Back">
			<sf:errors path="amount" cssClass="error" />
			<input type="hidden" name="_flowExecutionKey"
				value="${flowExecutionKey}" />
		</div>

	</sf:form>
</div>